package com.zyh.dao;

import com.zyh.domain.Student;

import java.sql.SQLException;
import java.util.List;

public interface IStudentDao {

    List<Student> list(Student student) throws SQLException;

    List<Student> page(Student student, int pageNum, int pageSize) throws SQLException;

    int count(Student student) throws SQLException;

    Student getStudent(int id) throws SQLException;

    int addStudent(Student student) throws SQLException;

    int updateStudent(Student student) throws SQLException;

    int deleteStudent(int id) throws SQLException;
}
